package top.hcode.hoj.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * (coll_user_stat)表实体类
 *
 * @author orangej
 * @since 2025-02-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("coll_user_stat")
public class CollUserStat implements Serializable {

    private static final long serialVersionUID = 444545527L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    private String userId;
    private String userName;
    private String collId;

    private BigDecimal subjectiveScore = BigDecimal.ZERO;
    private BigDecimal objectiveScore = BigDecimal.ZERO;
    private BigDecimal totalScore = BigDecimal.ZERO;

    private String classId;
    private String className;

    private Date startAnswerAt;
    private Date stopAnswerAt;
    private Date submitAt;

    private Integer judgeState;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    /*关联属性*/

}
